CFLAG= -std=c++11 -I ../../../build/release-install-cpp11/include/
LFLAG= -L ../../../build/release-install-cpp11/lib -ljsoncpp -lmuduo_net -lmuduo_base -pthread
.PHONY:all
all: reg_server rpc_server rpc_client 
reg_server:registry_server.cc
	g++ $(CFLAG) -o $@ $^ -std=c++11 $(LFLAG)
rpc_server:rpc_server.cc
	g++ $(CFLAG) -o $@ $^ -std=c++11 $(LFLAG)
rpc_client:rpc_client.cc
	g++ $(CFLAG) -o $@ $^ -std=c++11 $(LFLAG)
.PHONY:clean
clean:
	rm -f reg_server rpc_server rpc_client